package com.woniuxy.caradmin.entity.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author qu
 * @time 2020/12/07 17:12:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value ="apply",description = "申请记录表")
public class Apply implements Serializable {
    @ApiModelProperty(value = "[自动增长]主键")
    private Integer id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date starttime;
    @ApiModelProperty(value = "当前时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:dd")
    private Date applytime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endtime;
    @ApiModelProperty(value = "原因")
    private String reason;
    @ApiModelProperty(value = "备注")
    private String information;
    @ApiModelProperty(value = "人数")
    private Integer peoplenum;
    @ApiModelProperty(value = "目的的")
    private String destination;
    @ApiModelProperty(value ="1为审核通过，0位审核不通过，2为未审核")
    private  Integer available;
    @ApiModelProperty(value = "用户id")
    private Integer uid;
    @ApiModelProperty(value ="1为审核通过，0位审核不通过，2为未审核")
    private  Integer available2;
}
